﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.bonus {
    import flash.utils.*;

    public class HarvestBonusFactory {

        private var m_classMapping:Dictionary;

        public function HarvestBonusFactory(){
            this.m_classMapping = new Dictionary();
        }
        public function register(_arg1:String, _arg2:Class):void{
            this.m_classMapping[_arg1] = _arg2;
        }
        public function createBonus(_arg1:String, _arg2:XML):HarvestBonus{
            var _local3:Class = this.m_classMapping[_arg1];
            var _local4:HarvestBonus = new _local3(_arg2);
            return (_local4);
        }

    }
}//package Classes.bonus 
